package com.itheima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.health.resource.entity.QueryPageBean;
import com.itheima.pojo.CheckItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
//  通用mapper
@Mapper
public interface CheckItemMapper  extends BaseMapper<CheckItem> {

    @Select("select CHECKITEM_ID from t_checkgroup_checkitem where CHECKGROUP_ID = #{gid}")
    List<Integer> findCheckItemIdsByGroupId(@Param("gid") int gid);
}
